package jp.co.toshiba.ffsa.action.cstp;

import javax.annotation.Resource;

import jp.co.toshiba.ffsa.action.common.CommonAction;
import jp.co.toshiba.ffsa.form.cstp.Cstp201Form;

import org.seasar.struts.annotation.ActionForm;
import org.seasar.struts.annotation.Execute;

/**
 * home画面
 * @author npc
 */
public class Cstp201Action extends CommonAction{

    /** 画面ID */
    private String screenID = "Cstp201";
    /** ActionForm */
    @ActionForm
    @Resource
    protected Cstp201Form cstp201Form;
    /** Service */

    /**
     * 初期処理
     * @return 画面遷移先
     * @throws Exception
     */
    @Execute(validator = false)
    public String index() throws Exception {
        // ログイン済判定する
        if(this.judgeLogin(cstp201Form.getSessionId())){
            try{
                // リファラ判定
                if(this.judgeRefferer()){
       
                    return "/cstp/cstp201.jsp";
                }else{
                    return this.topTransition;
                }
            }catch(Exception e){
                this.errorLogWriter(e, "index", this.screenID);
                throw e;
            }
        }else{
            return this.topTransition;
        }
    }

    
}